<template>
    <div class="goodsDesc-container">
        <h3 class="title">{{info.title}}</h3>
        <hr>
        <div class="content" v-html="info.content"></div>
    </div>
</template>

<script>
    import connector from '../../base/interface.js';
    export default {
        data(){
            return{
                id:this.$route.params.id,
                info:{}
            }
        },methods:{
            getGoodsDesc(){
                connector.getGoodsDesc(this.id).then(result=>{
                    this.info=result;
                    console.log(result);
                },err=>{

                })
            }
        },created() {
            this.getGoodsDesc();
        }
    }
</script>

<style lang="scss" scoped>
.goodsDesc-container{
    .title{
        font-size: 16px;
        color: #007aff;
        margin: 15px 5px;
        text-align: center;
    }
    .content{
        padding: 5px;
    }
}
</style>